import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        Main main = new Main();
        int number = console.nextInt();
        System.out.println(main.palindromeNumber(number));
    }

    public Boolean palindromeNumber(int number) {

        //write your code here......
        String str = new String();
        String ans = number+"";
        int i = 0;
        while(number > 0){
            int n = number%10;
            str+=n;
            number /= 10;
        }
        if (str.equals(ans)){
            return true;
        }
        return false;

    }
}